<form class="form-horizontal" name="loginForm" ng-controller="LoginCtrl">
  <div class="form-group">
    <label for="username" class="col-sm-2 control-label">用户名：</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" id="username" name="username" placeholder="用户名" required>
    </div>
  </div>
  <div class="form-group">
    <label for="password" class="col-sm-2 control-label">密码：</label>
    <div class="col-sm-10">
      <input type="password" class="form-control" id="password" ng-maxlength="6" placeholder="密码" required>
    </div>
  </div>
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-default" ng-disabled="!loginForm.$valid" ng-click="login()">登录</button>
      <button type="reset" class="btn btn-default">重置</button>
    </div>
  </div>
</form>
